package com.lx.oms.controller.dao;

import java.util.List;

import org.mybatis.spring.annotation.MapperScan;

import com.lx.oms.common.dao.BaseMapper;
import com.lx.oms.common.entity.Query;
import com.lx.oms.controller.entity.SupplyCategoryEntity;

/**
 * 黄页分类
 *
 * @author houzhong
 * @date 2018年11月22日 上午10:10:19
 */
@MapperScan
public interface SupplyCategoryMapper extends BaseMapper<SupplyCategoryEntity> {

	/**
	 * 列表查询
	 * @param query
	 * @return
	 */
	List<SupplyCategoryEntity> listCategoryByParentId(Query query);
	
	int countCategoryChildren(String categoryId);
	
	SupplyCategoryEntity getCategoryByName(Query query);
	
	/**
	 * 查询
	 * @param parentId
	 * @return
	 */
	List<SupplyCategoryEntity> getCategoryByParentId(Query query);
}
